module.exports = {
    devServer: {
        proxy: {
            '/accessweb': {
                target: 'http://172.31.119.38:35002/roc/accessweb',
                changeOrigin: true
            },
            '/housereport': { // 房屋档案的请求代理
                target: 'http://172.31.118.55:45060/web/report',
                changeOrigin: true,
                pathRewrite: {
                    '^/housereport': ''
                }
            },
            '/open': { //获取token
                target: 'http://172.31.119.48:35002/roc/open',
                changeOrigin: true,
                pathRewrite: {
                    '^/open': ''
                }
            },
            '/customerserviceweb': { // 客户服务的请求代理
                target: 'http://172.31.119.48:35002/roc/customerserviceweb',
                changeOrigin: true,
                pathRewrite: {
                    '^/customerserviceweb': ''
                }
            },
            '/customerweb': { // 客户档案的请求代理
                target: 'http://work.wuyetoon.com:35002/roc/customerweb',
                changeOrigin: true,
                pathRewrite: {
                    '^/customerweb': ''
                }
            },
            '/qiniu': {
                target: 'http://work.wuyetoon.com:9001/qiniu',
                changeOrigin: true,
                pathRewrite: {
                    '^/qiniu': ''
                }
            }
        }
    },
    chainWebpack: config => {
        config.plugin('html')
            .tap(args => {
                args[0].title= '功能模拟'
                return args
            })
    }
}